import request from '@/utils/request'

// 查询库存分配明细列表
export function listBiInventoryAllocation(query) {
  return request({
    url: '/productAllocation/BiInventoryAllocation/list',
    method: 'get',
    params: query
  })
}

// 查询库存分配明细详细
export function getBiInventoryAllocation(id) {
  return request({
    url: '/productAllocation/BiInventoryAllocation/' + id,
    method: 'get'
  })
}

// 新增库存分配明细
export function addBiInventoryAllocation(data) {
  return request({
    url: '/productAllocation/BiInventoryAllocation',
    method: 'post',
    data: data
  })
}
// 新增库存分配明细
export function reExecuteFailure(data) {
  return request({
    url: '/productAllocation/BiInventoryAllocation/reExecuteFailure',
    method: 'post',
    data: data
  })
}
// 新增库存分配明细
export function executeBatchAllocateInventory(data) {
  return request({
    url: '/productAllocation/detail/executeBatchAllocateInventory',
    method: 'post',
    data: data
  })
}
// 新增库存分配明细
export function cancelBatchAllocateInventory(data) {
  return request({
    url: '/productAllocation/detail/cancelBatchAllocateInventory',
    method: 'post',
    data: data
  })
}
// 修改库存分配明细
export function updateBiInventoryAllocation(data) {
  return request({
    url: '/productAllocation/BiInventoryAllocation',
    method: 'put',
    data: data
  })
}

// 删除库存分配明细
export function delBiInventoryAllocation(id) {
  return request({
    url: '/productAllocation/BiInventoryAllocation/' + id,
    method: 'delete'
  })
}
